/*
 *************************************************************************
 *西瑞克斯研发管理系统
 *版 本: 1.0   
 *日 期：02/08/2012    
 *作 者： 王浩 QQ：873987060   
 *************************************************************************   
 */

package com.application.yfthesis.struts.form;

import java.util.Date;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import com.application.yfthesis.entity.YfThesis;
import com.manager.commons.StringUtil;

/**
 * 
 * Description: YfThesisForm Struts Action Form<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060 <br />
 * 
 * History: <br />
 * 
 * 02/08/2012 .
 * 
 */
public class YfThesisForm extends ActionForm {

	/** serialVersionUID */
	protected static final long serialVersionUID = -1L;

	public YfThesisForm() {

	}

	private String id;

	private String projectNo;

	private String thesisName;

	private String author;

	private Date publicationTime;

	private Long domain;

	private Long status;

	private Long org;

	private String operateid;

	private Date createDate;

	private String ids;

	private String projectName;

	private String projectOrg;

	private String publicationTimeStr;

	/**
	 * @return Returns the PublicationTime.
	 */
	public String getPublicationTimeStr() {
		String re = "";
		if (this.publicationTime == null) {
			return re;
		}
		try {
			re = StringUtil.dateToString(this.publicationTime);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return re;
	}

	/**
	 * @param ${field.propertyName}
	 *            Set the ${field.propertyName}.
	 */
	public void setPublicationTimeStr(String publicationTimeStr) {
		this.publicationTimeStr = publicationTimeStr;
		if (this.publicationTimeStr != null
				&& !"".equals(this.publicationTimeStr)) {
			try {
				this.publicationTime = StringUtil
						.stringToDate(this.publicationTimeStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}

	}

	/**
	 * @return Returns the Id
	 */
	public String getId() {
		return this.id;
	}

	/**
	 * @param id
	 *            Set the id.
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return Returns the ProjectNo
	 */
	public String getProjectNo() {
		return this.projectNo;
	}

	/**
	 * @param projectNo
	 *            Set the projectNo.
	 */
	public void setProjectNo(String projectNo) {
		this.projectNo = projectNo;
	}

	/**
	 * @return Returns the ThesisName
	 */
	public String getThesisName() {
		return this.thesisName;
	}

	/**
	 * @param thesisName
	 *            Set the thesisName.
	 */
	public void setThesisName(String thesisName) {
		this.thesisName = thesisName;
	}

	/**
	 * @return Returns the Author
	 */
	public String getAuthor() {
		return this.author;
	}

	/**
	 * @param author
	 *            Set the author.
	 */
	public void setAuthor(String author) {
		this.author = author;
	}

	/**
	 * @return Returns the PublicationTime
	 */
	public Date getPublicationTime() {
		return this.publicationTime;
	}

	/**
	 * @param publicationTime
	 *            Set the publicationTime.
	 */
	public void setPublicationTime(Date publicationTime) {
		this.publicationTime = publicationTime;
	}

	/**
	 * @return Returns the Domain
	 */
	public Long getDomain() {
		return this.domain;
	}

	/**
	 * @param domain
	 *            Set the domain.
	 */
	public void setDomain(Long domain) {
		this.domain = domain;
	}

	/**
	 * @return Returns the Status
	 */
	public Long getStatus() {
		return this.status;
	}

	/**
	 * @param status
	 *            Set the status.
	 */
	public void setStatus(Long status) {
		this.status = status;
	}

	/**
	 * @return Returns the Org
	 */
	public Long getOrg() {
		return this.org;
	}

	/**
	 * @param org
	 *            Set the org.
	 */
	public void setOrg(Long org) {
		this.org = org;
	}

	/**
	 * @return Returns the Operateid
	 */
	public String getOperateid() {
		return this.operateid;
	}

	/**
	 * @param operateid
	 *            Set the operateid.
	 */
	public void setOperateid(String operateid) {
		this.operateid = operateid;
	}

	/**
	 * @return Returns the CreateDate
	 */
	public Date getCreateDate() {
		return this.createDate;
	}

	/**
	 * @param createDate
	 *            Set the createDate.
	 */
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	private List<YfThesis> yfThesisList;

	/**
	 * @return the yfthesisformList
	 */
	public List<YfThesis> getYfThesisList() {
		return yfThesisList;
	}

	/**
	 * @param yfThesisList
	 *            the yfthesisformList to set
	 */
	public void setYfThesisList(List<YfThesis> yfThesisList) {
		this.yfThesisList = yfThesisList;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	/**
	 * Method validate
	 * 
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * Method reset
	 * 
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
	}

	public String toString() {
		return ReflectionToStringBuilder.toString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getProjectOrg() {
		return projectOrg;
	}

	public void setProjectOrg(String projectOrg) {
		this.projectOrg = projectOrg;
	}
}
